package cn.getech.data.metadata.model.res;

import cn.getech.data.metadata.entity.CollectionNotificationUser;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@ApiModel(description = "元数据返回列表")
@Data
public class CollectionTaskListRes {
    @ApiModelProperty(value = "")
    private Long id;
    @ApiModelProperty(value = "任务名称")
    private String taskName;
    @ApiModelProperty(value = "运行状态 0:未采集 1:采集中 2:采集成功 3:采集失败 4:等待下一次采集")
    private Integer runStatus;
    @ApiModelProperty(value = "运行时间")
    private Date runTime;
    @ApiModelProperty(value = "任务类型 0 手动采集 1自动采集")
    private Integer taskType;
    @ApiModelProperty(value = "运行计划")
    private String runPlan;
    @ApiModelProperty(value = "运行次数")
    private Integer runCount;
    @ApiModelProperty(value = "是否启用 0 未启用 1 启用")
    private Integer runEnable;
    @ApiModelProperty(value = "调度方式 1:正常 2:暂停")
    private Integer scheduleEnable;
    @ApiModelProperty(value = "所属系统")
    private Integer ownSystem;
    @ApiModelProperty(value = "所属模块")
    private Integer ownModule;
    @ApiModelProperty(value = "导入方式")
    private Integer exportType;
    @ApiModelProperty(value = "初始化角色")
    private Long initRole;
    @ApiModelProperty(value = "初始化角色名称")
    private String roleName;
    @ApiModelProperty(value = "数据源ID")
    private  Integer sourceId;
    @ApiModelProperty(value = "创建者ID")
    private  Integer createPer;
    @ApiModelProperty(value = "创建者名字")
    private  String createName;
    @ApiModelProperty(value = "是否拥有编辑权限，1：有   0：没有")
    private Integer  hasAuth;
    @ApiModelProperty(value = "通知用户组回显")
    List<CollectionNotificationUser> collectionNotificationUsers;

    private List<String> categoryIdsList;

    private List<String>  categoryNamesList;
}
